//
//  KXChannelCell.swift
//  YunshuApp
//
//  Created by 周文杰 on 2017/6/2.
//  Copyright © 2017年 zwj. All rights reserved.
//

import UIKit

class KXChannelCell: UITableViewCell {

    let button = UIButton.init(type: UIButton.ButtonType.custom)
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        button.frame = CGRect.init(x: Const.SCREEN_WIDTH - 45, y: 10, width: 30, height: 30)
        button.setImage(UIImage.init(named: "check1"), for: .normal)
        button.setImage(UIImage.init(named: "check2"), for: .selected)
        button.isUserInteractionEnabled = false
        self.contentView.addSubview(button)
    }
    
    override func layoutSubviews() {
        button.frame = CGRect.init(x: Const.SCREEN_WIDTH - 45, y: self.frame.size.height/2 - 15, width: 30, height: 30)
        super.layoutSubviews()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
